/**
 * 统一发证 签收信息数据api
 */
import request from "@/utils/request";

/**
 * 初始化证照类型
 */
export function initSysDictData() {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/tyfz/caseSignForInfo/initSysDictData",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    }
  });
}

/**
 * 保存签收信息数据
 * @param {*} data
 */
export function saveOrUpdate(data) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/tyfz/caseSignForInfo/saveOrUpdate",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    },
    data: data
  });
}

// 获取签收详细信息
export function getCaseSignForInfo(csfOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/tyfz/caseSignForInfo/getCaseSignForInfo?csfOid=" +
      csfOid,
    method: "get"
  });
} 
